#ifndef COLORPICKER_H
#define COLORPICKER_H

#include <QFrame>
#include <math/color.h>

class ColorPicker : public QWidget
{
  Q_OBJECT
private:
  ceColor4f _color;

protected:
  virtual void paintEvent (QPaintEvent *event);
  virtual void mouseReleaseEvent(QMouseEvent *);
public:
  ColorPicker(QWidget *parent = 0);

  void SetColor (const ceColor4f color);
  const ceColor4f& GetColor () const;

signals:
  void changed ();
};

#endif // COLORPICKER_H
